home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-27 | 1.8 KB | 76 lines | [TEXT/MPS ] |
- # This script file is part of the DirectTeX :-) package.
- #
- # (c) 1991-94 by Wilfried Ricken
- # Hagenaustraße 41
- # 45138 Essen
- # Germany
-
- Begin
- Set Echo 0
- Set Exit 0
-
- If {Status} != 0 || "`Catenate "{dt_MissingFonts}"`" == ""
- Alert "There are no missing fonts to create. You may check your document for missing fonts and call me again."
- Exit 0
- End
-
- If {#} == 1 && "{1}" == "-show"
- Open "{dt_MissingFonts}"
- Find • "{dt_MissingFonts}"
- Exit 0
- End
-
- If {#} == 1 && "{1}" == "-make"
- Set FontCount 0
- Set ErrCount 0
- Set dt_BatchMode On
- Export dt_BatchMode
-
- Target "{dt_MissingFonts}"
- Open "{dt_MissingFonts}"
- Find • "{dt_MissingFonts}"
- BeginSession
-
- SearchPath dt_FormatFiles Plain.base ∑ Dev:Null
-
- If {Status} != 0
- MFToPK -i Plain ≥≥ "{dt_SessionLog}"
- End
-
- Echo "### `Date -t` ----- Processing ∂"{dt_MissingFonts}∂"." >> "{dt_SessionLog}"
-
- Loop
- Find /[¶n]+/ "{dt_MissingFonts}"
- Break If {Status} != 0
-
- Echo -n "### Executing command '" >> "{dt_SessionLog}"
- Catenate "{dt_MissingFonts}.§" >> "{dt_SessionLog}"
- Echo "'." >> "{dt_SessionLog}"
- Execute "{dt_MissingFonts}.§" ≥≥ "{dt_SessionLog}"
- Set ErrNum {Status}
- Echo "### Last command returned with Status = {ErrNum}." >> "{dt_SessionLog}"
-
- If {ErrNum} < 2
- Find `Position -l "{dt_MissingFonts}"` "{dt_MissingFonts}"
- Clear § "{dt_MissingFonts}"
- Save "{dt_MissingFonts}"
- Evaluate FontCount += 1
- Else
- Evaluate ErrCount += 1
- End
- End
-
- Find • "{dt_MissingFonts}"
- Close -y "{dt_MissingFonts}"
-
- If {ErrCount} ≠ 0
- Echo "### Use 'Show Missing Fonts' to see all bad commands." >> "{dt_SessionLog}"
- End
-
- Echo "### `Date -t` ----- Finished. Fonts created: {FontCount}. Errors: {ErrCount}." >> "{dt_SessionLog}"
- EndSession
- End
-
- Exit 0
- End ∑ Dev:Null
-